FROM bitnami/java:17.0.10-13-debian-12-r7
LABEL authors="Administrator"

COPY ./target/service-luna-0.0.1-SNAPSHOT.jar service-luna-0.0.1-SNAPSHOT.jar

ENV nacos-server-addr=nacos

CMD ["java", "-jar", "-Xmx2g", "-Xms2g", "--add-opens=java.base/java.lang=ALL-UNNAMED", "--add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED", "/service-luna-0.0.1-SNAPSHOT.jar"]